package structuralPattern.adapter.example02;


public class Test02 {
    public static void main(String[] args) {
        Computer computer = new Computer();

        SDCardImpl sdCard = new SDCardImpl();

        System.out.println(computer.read(sdCard));
        computer.write(sdCard,"lalala");

        System.out.println("===========================");

        TFCard tfCard = new TFCardImpl();
        SDCard adapter = new SDAdapterTF(tfCard);

        System.out.println(computer.read(adapter));
        computer.write(adapter,"hahaha");


    }
}
